<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="title.login"></spring:message></title>

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/bootstrap/bootstrap.css"
	media="screen">

<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/js/jquery/jquery-1.11.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/js/bootstrap/bootstrap.js"></script>

</head>
<body>

	<div class="jumbotron">
		<!-- 	<div class="container"> -->
		<form:form action="login" commandName="loginUserDto"
			class="form-horizontal" role="form">
			<fieldset>
				<spring:message code="message.login" var="messageLogin"></spring:message>
				<h2 class="form-signin-heading" align="center">${ messageLogin }</h2>
				<div class="form-group">
					<div class="row">
						<div class="col-md-4 col-md-offset-4">
							<spring:message code="label.username" var="username"></spring:message>
							<form:input placeholder="${ username }" required="true"
								path="username" class="form-control" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="row">
						<div class="col-md-4 col-md-offset-4">
							<spring:message code="label.password" var="password"></spring:message>
							<form:password placeholder="${ password }" required="true"
								class="form-control" path="password" />
						</div>
					</div>
				</div>
				<div class="form-group" align="center">
					<div class="row">
						<spring:message code="btn.login" var="btnLogin"></spring:message>
						<input class="btn btn-primary btn-lg" type="submit"
							value="${ btnLogin }">
					</div>
				</div>
				<div class="form-group" align="center">
					<div class="row">
						<div class="col-md-4 col-md-offset-4">
							<form:errors path="username" class="text-danger"></form:errors>
							<form:errors path="password" class="text-danger"></form:errors>
						</div>
					</div>
				</div>
			</fieldset>
		</form:form>
	</div>

</body>
</html>